package com.yc.cloud.admin.dto.mediakit;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(value = "MediaKitOnPublishHook", description = "MediaKit on_publish 推流事件回调参数")
public class MediaKitOnPublishHook {

    @ApiModelProperty("流应用名")
    private String app;

    @ApiModelProperty("TCP链接唯一ID")
    private String id;

    @ApiModelProperty("推流器ip")
    private String ip;

    @ApiModelProperty("推流url参数")
    private String params;

    @ApiModelProperty("推流器端口号")
    private Integer port;

    @ApiModelProperty("推流的媒体源类型，可能是rtsp, rtmp, srt")
    private String schema;

    @ApiModelProperty("推流的传输协议，可能是rtsp/rtmp/rtsps/rtmps/rtc/srt/rtp/tcp/udp")
    private String protocol;

    @ApiModelProperty("流ID")
    private String stream;

    @ApiModelProperty("流虚拟主机")
    private String vhost;

    @ApiModelProperty("服务器ID，通过配置文件设置")
    @JsonProperty("mediaServerId")
    private String mediaServerId;
}
